package com.mnsk.generator.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mnsk.generator.common.copycat.annotaion.Eq;
import com.mnsk.generator.common.copycat.annotaion.Gt;
import com.mnsk.generator.common.copycat.annotaion.Like;
import com.mnsk.generator.common.copycat.annotaion.Lt;
import com.mnsk.generator.domain.SysConfig;
import com.mnsk.generator.common.copycat.query.AbstractQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 系统配置相关
 *
 * @author admin
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
//系统配置相关
public class SysConfigQuery extends AbstractQuery<SysConfig> {

    @Eq
    //参数主键
    private Long configId;

    @Like
    //参数名称
    private String configName;

    @Eq
    //参数键名
    private String configKey;

    @Like
    //参数键值
    private String configValue;

    @Eq
    //系统内置（Y是 N否）
    private String configType;

    @Gt(alias = "create_time")
    //索引开始时间段（yyyy-MM-dd）
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    @Lt(alias = "create_time")
    //索引结束时间段（yyyy-MM-dd）
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

}
